﻿using System.ComponentModel.DataAnnotations;

namespace Entity.BaseInfo.DTO.Staff
{
    /// <summary>
    /// 员工模型 - 更新
    /// </summary>
    public class StaffUpdateDTO
    {
        /// <summary>
        /// 员工id
        /// </summary>
        [Required(ErrorMessage = "员工Id不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 员工编码
        /// </summary>
        [Required(ErrorMessage = "员工编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        [Required(ErrorMessage = "员工姓名Name不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 员工性别
        /// </summary>
        public string? Sex { get; set; }

        /// <summary>
        /// 员工年龄
        /// </summary>
        public string? Age { get; set; }

        /// <summary>
        /// 员工账号
        /// </summary>
        [Required(ErrorMessage = "员工账号Account不能为空")]
        public string Account { get; set; }

        /// <summary>
        /// 员工密码
        /// </summary>
        [Required(ErrorMessage = "员工密码Password不能为空")]
        public string Password { get; set; }

        /// <summary>
        /// 员工生日
        /// </summary>
        public string? Birthday { get; set; }

        /// <summary>
        /// 员工联系方式
        /// </summary>
        public string? Contact { get; set; }

        /// <summary>
        /// 员工部门
        /// </summary>
        public string? DepartmentId { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Required(ErrorMessage = "员工是否启用IsEnable不能为空")]
        public bool IsEnable { get; set; }
    }
}
